﻿using System;
using System.Windows.Forms;

namespace EpisodeWizard.CoreUI
{

    internal class DisposableCursor : IDisposable
    {
        private Cursor saved = null;

        public DisposableCursor( Cursor newCursor )
        {
            saved = Cursor.Current;

            Cursor.Current = newCursor;
        }

        public void Dispose()
        {
            Cursor.Current = saved;
        }
    }

	internal class DisposableWaitCursor : DisposableCursor
	{
		public DisposableWaitCursor() : base(Cursors.WaitCursor)
		{
		}
	}

}

